import { fetchTopicsWithCommentTop10 } from './services';
import { renderTopicsWithCommentTop10 } from './render';


fetchTopicsWithCommentTop10()
    .then(topicList => {
        document.getElementById('main').innerHTML = renderTopicsWithCommentTop10(topicList);
    }, (err) => {
        console.log("ERROR:", err);
    });